package com.wbc.utils.BCryptUtil;

/**
 * 测试类
 * @Author: wangbingchen
 * @CreateTime: 2024-01-04
 */
public class BCryptTest {

    public static void main(String[] args) {
        //明文变摘要  不可逆
        String code = BCryptUtil.encode("123456");
        System.out.println(code);
        //校验是否一致
        boolean checkpw = BCryptUtil.checkpw("123456", code);
        System.out.println(checkpw);

    }
}
